package cate.game.role.farm.endless.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBEndless;
import cate.game.role.farm.endless.MyEndlessPO;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "我的无尽轮回数据 の 返回")
public class EndlessDataResp implements MsgOutput {

    @NoteField(value = "我的无尽轮回数据")
    public MyEndlessPO data;

    public EndlessDataResp() {

    }

    public EndlessDataResp(Role role) {
        this.data = role.getFarm().endless;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBEndless.DATA_RESP;
    }
}
